package com.system.FinancialDepartment.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

@Entity
@Table(name="t_rewardAndPunishiment")
public class RewardAndPunishiment {

	private Long id;
	private Long empId;
	private String event;
	private Date time;
	private Long score;
	
	//get
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return id;
	}

	public Long getEmpId() {
		return empId;
	}
	public String getEvent() {
		return event;
	}
	public Date getTime() {
		return time;
	}
	public Long getScore() {
		return score;
	}
	
	//set
	public void setId(Long id) {
		this.id = id;
	}
	public void setEmpId(Long empId) {
		this.empId = empId;
	}
	public void setEvent(String event) {
		this.event = event;
	}
	@JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
	public void setTime(Date time) {
		this.time = time;
	}
	public void setScore(Long score) {
		this.score = score;
	}

	@Override
	public String toString() {
		return "RewardAndPunishiment [id=" + id + ", empId=" + empId + ", event=" + event + ", time=" + time
				+ ", score=" + score + "]";
	}
	
	
	
	
	
}
